<%--
  Created by IntelliJ IDEA.
  User: Aizen
  Date: 2021/11/12
  Time: 11:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>花礼网后台管理系统-管理员登录</title>
    <base href="http://${pageContext.request.serverName }:${pageContext.request.serverPort }${pageContext.request.contextPath }/" />
    <script src="js/jquery-3.6.0.js"></script>
    <link rel="stylesheet" href="css/Login.css">
</head>
<body>
    <form action="manager/adminLoginServlet" method="post">
        <div id="bigBox">
            <h1>花礼网_后台管理系统</h1>
            <div class="inputBox">
                <div class="inputText">
                    <input type="text" name="username" placeholder="Username">
                </div>
                <div class="inputText">
                    <input type="password" name="password" placeholder="Password">
                </div>
                <input class="inputButton" type="submit" value="Sign in" id="login">
            </div>
        </div>
    </form>
</body>
<script>
    $(function (){
        $("#login").click(function (){
            if($("[name='username']").val()==""){
                alert("请输入用户名！")
                return false;
            }else if($("[name='password']").val()==""){
                alert("请输入密码！")
                return false;
            }
        })
    })
</script>
</html>
